1 import java.util.*;
2
3 public class MEvent extends Object {
4
5 public static final int eventNULL = 0;
6 public static final int eventUI_STOP = 1;
7 public static final int eventUI_START = 2;
8 public static final int eventUI_REFRESH = 3;
9 public static final int eventUI_PAUSE = 4;
10 public static final int eventSLAVE_RESPONSE = 5;
11 public static final int eventTIME = 6;
12
13 public static final int rNULL = 0; // Response codes
14 public static final int rSUCCESS = 1;
15 public static final int rFAIL = 2;
16 public static final int rIO_ERROR = 3;
17
18 public int event;
19 public int value;
20 public int index;
21 public long lvalue;
22 public Object item;
23 public int id;
24
25 }
26
27 // Responses are returned in the following way
28 // value = response code
29 // index = original command
30 // lvalue = latency (if applicable)
31 // item = any requested data (if applicable)
32 // id = slave id
|